package com.vogtec.fota.entity.mqtt;

/**
 * Created by TieYan on 2017/3/4.
 *
 * 下行消息
 */
public abstract class BikeWireDown {
    byte[] content;
    public abstract byte[] encode();

    public byte[] getContent() throws NullPointerException{
        if(content == null || content.length == 0){
            throw new NullPointerException("content is null");
        }
        return content;
    }
}
